package com.sj.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2022-07-07
 * Time: 上午 10:47
 * Description: 消息头
 *
 * @author xiaoqi
 * @since 2022-07-07
 */
@AllArgsConstructor
@Data
@NoArgsConstructor
@ToString
public class Header implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 消息长度
     */
    private int msgLen;

    /**
     * 消息类型
     */
    private byte msgType;

}